package com.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Comment {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long discoveryId;

    private Long itemId;

    private Long rootCommentId;

    private Long toCommentId;

    private Long userId;

    private String content;

    private String image;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
